import { alovaInstance, alovaInstanceMenu } from '../index'

interface Todo {
    dataList: object;
    code: number;
    success: boolean;
}
export const getData = () => alovaInstanceMenu.Get<Todo[]>('/menu')

// Department/GetInfoById?id=1
interface TodoInfo {
    data: object;
    code: number;
    // success: boolean;
    count: number;
    msg: string;
    time: string;
}
// export const getInfoById = () => alovaInstance.Get<TodoInfo[]>('/api/Department/GetInfoById?id=1')
export const getInfoById = () => alovaInstance.Get<TodoInfo[]>('/api/EPC/GetCarInfo?vinCode=111111&manufacturerId=111111')